package com.ruoyi.task.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障现象对象 sys_fault
 * 
 * @author YJF
 * @date 2022-10-19
 */
public class SysFault extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private Long taskNo;

    /** 部门ID */
    private Long deptId;

    /** 故障名称 */
    @Excel(name = "故障名称")
    private String childName;

    /** 百分比 */
    @Excel(name = "百分比")
    private Integer weight;

    private Integer status;

    /** 设备故障ID */
    private Long parentId;
    
    /** 故障现象选择类型 */
    private String faultType;

    /** 故障现象任务编号集合 */
    private Long[] arrayTaskNo;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskNo(Long taskNo) 
    {
        this.taskNo = taskNo;
    }

    public Long getTaskNo() 
    {
        return taskNo;
    }
    public void setChildName(String childName) 
    {
        this.childName = childName;
    }

    public String getChildName() 
    {
        return childName;
    }
    public void setWeight(Integer weight) 
    {
        this.weight = weight;
    }

    public Integer getWeight() 
    {
        return weight;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getFaultType() {
        return faultType;
    }

    public void setFaultType(String faultType) {
        this.faultType = faultType;
    }

    public Long[] getArrayTaskNo() {
        return arrayTaskNo;
    }

    public void setArrayTaskNo(Long[] arrayTaskNo) {
        this.arrayTaskNo = arrayTaskNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskNo", getTaskNo())
            .append("childName", getChildName())
            .append("weight", getWeight())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
